@charset "utf-8";
@CDNURL: '//cdn.weipaitang.com/';
@WEI_HOST: '/';
@version: '1.94';
@title: 0.42rem;
@content: 0.32rem;

.setWidthHeight(@width:20px, @height: 20px) {
    width: @width;
    height: @height;
    line-height: @height;
}

.text-line(@num: 1) {
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: @num;
    overflow: hidden;
}

.salePrice::before {
    content: "￥";
    font-size: .75em;
}

.negativePrice::before {
    content: "-￥";
    font-size: .75em;
}

.borderTop(@color: #eee) {
    &::before {
        content: '';
        position: absolute;
        height: 1px;
        width: 100%;
        background-color: @color;
        top: 0;
        transform: scaleY(0.5);
    }
}

.borderBottom(@color: #eee) {
    &::after {
        content: '';
        position: absolute;
        height: 1px;
        width: 100%;
        background-color: @color;
        bottom: 0;
        right: 0;
        transform: scaleY(0.5);
    }
}

.gray-mode {
    filter: grayscale(1);
}
